home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11401 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: bcarh8ab.bnr.ca!news
  2. From: Chabane Rezzik <rezzik@bnr.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HP C++ Compiler Problem w/ templates
  5. Date: Thu, 14 Mar 1996 08:30:49 -0500
  6. Organization: Nortel Technologies
  7. Message-ID: <31481F89.5CC0@bnr.ca>
  8. References: <4i7i5n$fst@access4.digex.net>
  9. NNTP-Posting-Host: bcarhf5e.bnr.ca
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/712)
  14. CC: car@access4.digex.net
  15.  
  16. Mr. Blue wrote:
  17. > The HP compiler is generating a file in the ptrepository directory,
  18. > which fails to compile on the link step. It seems that this file is
  19. > missing a #include. If I add the #include manually and CC that file,
  20. > it will compile. If I go back up to the src directory and recompile,
  21. > the file gets regenerated in the ptrepository subdirectory and the
  22. > compile again fails on the link step.
  23. > Has anyone else had this sort of problem? Is there workaround for it?
  24. > Some switch I need to pass to CC??
  25. > Any help Appreciated!!!!
  26. > Background info:
  27. > I am using HP C++ Compiler, version: Softbench 4.0.6
  28. > We are compiling on an HP 700 running 10.0.1
  29. > I am trying to compile some of the sample programs that come with
  30. > Object Space's System<Toolkit>. Specifially, string7.cpp in the examples
  31. > directory if that matters to anyone.
  32. > Chris Ruegger
  33.  
  34. Two possiblities as you don't give more details on what compile options
  35. and
  36. link options you are using:
  37.  
  38. 1. Take a look to the -pta, -pth, -ptb, ... options. Just do a man CC.
  39. 2. You are missing some pathes if this is on HPUX 10.01.
  40. I had similar problem. The template instantiation does not work
  41. correctly if
  42. the compiler version is (returned by what /opt/CC/bin/CC)
  43.     HP C++ HPCPLUSPLUS  A.10.09
  44. You need 
  45.     HP C++ HPCPLUSPLUS  A.10.11
  46.  
  47. You need the following two patches: PHSS_6469 and PHSS_6470
  48.  
  49. Hope this helps
  50.  
  51. -- 
  52. Chabane Rezzik
  53. Nortel technologies
  54. rezzik@bnr.ca
  55.